//
//  AppointmentListCell.m
//  Doctor1.0
//
//  Created by mk on 15/11/5.
//  Copyright (c) 2015年 cocoa-mk. All rights reserved.
//

#import "AppointmentListCell.h"

@implementation AppointmentListCell

- (void)awakeFromNib
{
    // Initialization code
}

-(void)fillDataWith:(ReservationData *)info
{
    labCode.text = info.refNo;
    labDoctor.text = info.expertName;
    labHospital.text = info.hpName;
    
    if(info.dateStart.length>0 && info.dateEnd.length>0)
    {
       NSString * strBegdate = [CommonFunctions nianYueRiStringConvertDateString:info.dateStart withFormatter:@"-"];
     
       NSString * strEnddate = [CommonFunctions nianYueRiStringConvertDateString:info.dateEnd withFormatter:@"-"];
      labtime.text = [NSString stringWithFormat:@"%@至%@",strBegdate,strEnddate];
    }
    else
        labtime.text = @"";
        
}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}




@end




